// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
  devtools: { enabled: false },
  modules: ['@nuxt/eslint', '@nuxt/ui', '@nuxt/image', '@nuxt/icon'],

  eslint: {
    config: {
      stylistic: true,
    },
  },

  runtimeConfig: {
    public: {
      directusUrl: '',
      redirectUrl: '',
    },
    sendmailUser: '',
    sendmailPass: '',
    encryptPassword: '',
    directusServerToken: '',
    defaultRoleId: '',
    sendmailWebhook: '',
  },

  compatibilityDate: '2024-07-04',

  app: {
    head: {
      title: 'Easy Cloud',
      link: [
        { rel: 'apple-touch-icon', sizes: '180x180', href: '/favicon-180x180.png' },
        { rel: 'icon', type: 'image/png', sizes: '32x32', href: '/favicon-32x32.png' },
        { rel: 'icon', type: 'image/png', sizes: '16x16', href: '/favicon-16x16.png' },
      ],
      meta: [
        {
          name: 'viewport',
          content: 'width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=1, viewport-fit=cover',
        },
      ],
    },
  },
})
